﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections.ObjectModel;

namespace System.Windows.Art
{
    public class ColorChannelCollection : ReadOnlyCollection<ColorChannel>
    {
        internal ColorChannelCollection(IList<ColorChannel> list)
            : base(list)
        {
        }

        public ColorChannel this[String name]
        {
            get
            {
                foreach (var item in this) if (item.Name == name) return item;
                return null;
            }
        }
    }
}
